<template>

	<div class="main_content">
		<SideMenu :items='items'></SideMenu>
		
		<!-- 组件强行不复用 ，使用同一页面加载不同数据-->
		<router-view :key="$route.fullPath"></router-view>
	</div>
	

</template>

<script>
	import SideMenu from '../../components/sidemenu/SideMenu.vue';
	
	export default {
		components: {
			SideMenu
		},
		data() {
			return {
				items: [{
						index: 'Info',
						title: '个人资料',
						icon: 'el-icon-s-custom',
						
					},
					{
						index: 'recommend',
						title: '推荐记录',
						icon: 'el-icon-s-open',
					},
					{
						index: 'collection',
						title: '我的收藏',
						icon: 'el-icon-star-on',
					},
					{
						index: 'wisdomHelp',
						title: '我的求助',
						icon: 'el-icon-s-help'
					},
					
				]
			}
		}
	}
</script>

<style scoped>
	.el-container {
		height: 100%;
	}

	.main_content{
		display: flex;
		/* flex-wrap: wrap; */
		height: 100%;
		flex-direction:row;
	}
</style>
